package com.xinou.daily_report.config.mybatis;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lizhongyuan
 */
@Configuration
@MapperScan({
        "com.xinou.daily_report.mapper",
        "com.xinou.common.mapper",
        "com.xinou.sso.mapper",
        "com.xinou.service.mapper"
})
public class MybatisPlusConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
